Skip to content

Conversation

@Joe7M
Copy link
Contributor

@Joe7M Joe7M commented Mar 20, 2023

Hi Chris,

at the moment I'm using sockets a lot to communicate from PC with a Raspberry Pi. Works very well and is programmed fast and easy.

I realized a bug with BGETC. When sending a zero with BPUTC, the zero was interpreted as end-of-connection and EOF returned true. I fixed this.

The second inconsistency I realized was, that LOF only returns that data is waiting, but not how much data. I changed this. Now it is possible to query how much data is in the queue and use INPUT(len, file) to get all the data in one go. I hope that there are not to much basic scripts, which will make trouble now.

To test the socket communication, I added a unit test. It will only work in Linux and is a little bit tricky. Please have a look, if this is OK for you.

Best regards, Joerg

@chrisws chrisws merged commit a846508 into smallbasic:master Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants